package com.gxsyh.nantie.user.management.provider.domain;

import java.io.Serializable;
import javax.persistence.*;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

/**
 * @email yom535@outlook.com
 * @author: 刘锋嘉(Liu Fengjia)
 * @date: 2020/1/7
 * @time: 10:31
 * @Description: 
 */
@Data
@Table(name = "tb_department_user")
public class TbDepartmentUser implements Serializable {
    /**
     * ID
     */
    @JsonSerialize(using= ToStringSerializer.class)
    @Id
    @Column(name = "id")
    @GeneratedValue(generator = "JDBC")
    private Long id;

    /**
     * 部门ID
     */
    @JsonSerialize(using= ToStringSerializer.class)
    @Column(name = "department_id")
    private Long departmentId;

    /**
     * 用户ID
     */
    @JsonSerialize(using= ToStringSerializer.class)
    @Column(name = "user_id")
    private Long userId;

    private static final long serialVersionUID = 1L;
}